home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Tutorial / Stepstone_Tutorial / Makefile < prev    next >
Makefile  |  1995-06-12  |  881b  |  52 lines

  1. # Application makefile. 
  2. #
  3. #
  4. # Generated by the NeXT Interface Builder. 
  5. #
  6.  
  7. #
  8. # Name of the application. 
  9. #
  10. NAME = Fruit
  11.  
  12. #
  13. # Source files for this application. 
  14. #
  15. MFILES = Apple.m Fruit.m fruitMain.m
  16. HFILES = 
  17. CFILES = 
  18. NIBFILES =
  19. TIFFFILES = 
  20. PSWFILES = 
  21. SNDFILES = 
  22.  
  23. #
  24. # Libraries used by this application.
  25. #
  26. LIBS = -lNeXT_s -lsys_s
  27.  
  28. #
  29. # Flags to pass on to the compiler and linker.
  30. #
  31. CFLAGS = -g 
  32. LFLAGS = 
  33.  
  34. #
  35. # Rules.
  36. #
  37. SRCFILES = $(MFILES) $(HFILES) $(CFILES) $(NIBFILES) $(TIFFFILES) $(PSWFILES) 
  38. OBJFILES = $(MFILES:.m=.o) $(CFILES:.c=.o) $(PSWFILES:.psw=.o) 
  39. DERIVED = $(PSWFILES:.psw=.c) 
  40. GARBAGE = $(DERIVED) core errs 
  41.  
  42. $(NAME): $(OBJFILES) 
  43.     $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OBJFILES) $(LIBS) 
  44.  
  45. clean: 
  46.     -rm -f *.o $(NAME) $(DERIVED) $(GARBAGE) 
  47.  
  48. help: 
  49.     @echo '  make $(NAME) - to make the application'
  50.     @echo '  make clean -    to remove all files but the source'
  51.  
  52.